<? $header->display(); ?>

<h1>Search Shows</h1>

<?
if ($view == 'search' || $view == 'calendar') {
	echo($search->display());
}

if ($view == 'media') { 
	$media->display();
} else {
	if ($contentTitle) { ?>	
	<h1><?=$contentTitle?></h1>
	<? } ?>
	
	<div class="content">
	
	<? 
	if ($view == 'search') {
		if ($shows) {
			foreach($shows as $sht) {
				$sht->display();
			}
		} else {
			echo("No results.");
		}
	} else {
		$detail->display();
	}
	
	if ($view == 'search') {
		$paging->display();
	}
	
	if (isset($auxLink)) { ?>
		<p><?=$auxLink?></p>
	<? }
} ?>
</div>

<? $footer->display(); ?>